From f3dac803d38faa3be2d97c078f11d67d0da8ceda Mon Sep 17 00:00:00 2001 From: Alastair Tse Date: Thu, 25 Jan 2007 10:29:33 +0000 Subject: [PATCH] [XEND] Remove usage of set() in XendMonitor as it is a py2.4+ feature Signed-off-by: Alastair Tse --- tools/python/xen/xend/XendMonitor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/python/xen/xend/XendMonitor.py b/tools/python/xen/xend/XendMonitor.py index 855cff216c..7a3046c3c3 100644 --- a/tools/python/xen/xend/XendMonitor.py +++ b/tools/python/xen/xend/XendMonitor.py @@ -220,11 +220,11 @@ class XendMonitor(threading.Thread): while True: self.lock.acquire() try: - active_domids = set() + active_domids = [] # Calculate utilisation for VCPUs for domid, cputimes in self._get_cpu_stats().items(): - active_domids.add(domid) + active_domids.append(domid) if domid not in self._domain_vcpus: # if not initialised, save current stats # and skip utilisation calculation -- 2.30.2